﻿using Lapis.Shell.Views;
using Prism.Ioc;
using Prism.Modularity;
using Prism.Regions;

namespace Lapis.Shell
{
    [Module(ModuleName = "ShellModule", OnDemand = true)]
    public class ShellModule : IModule
    {
        public void OnInitialized(IContainerProvider containerProvider)
        {
            var regionManager = containerProvider.Resolve<IRegionManager>();
            regionManager.RegisterViewWithRegion(ShellRegionNames.SideMenuContentRegion, typeof(SideMenuContent)); // 注册侧边菜单内容视图
            regionManager.RegisterViewWithRegion(ShellRegionNames.TabPagesContentRegion, typeof(TabPagesContent)); // 注册Tab页面内容视图
        }

        public void RegisterTypes(IContainerRegistry containerRegistry)
        {
        }
    }
}